package state.pattern;

/**
 * @author ZLL
 * @date create in 2018/05/10
 */
public class Main {

    public static void main(String[] args) {
        Account account = new Account("段誉",0.0D);
        account.deposit(1000);
        account.withDraw(2000);
        account.deposit(3000);
        account.withDraw(4000);
        account.withDraw(1000);
        account.computerInterest();
    }
}
